package com.ruoyi.business.domain.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class AccommodationStats implements Serializable {
    private Integer allCount;
    private Integer haveCount;
    private Integer notCount;

    private Integer assignedaccommodationoutsourceyes;
    private Integer assignedaccommodationoutsourceno;
    private Integer unassignedaccommodationoutsourceyes;
    private Integer unassignedaccommodationoutsourceno;
    private Integer alloutsourceno;
    private Integer alloutsourceyes;
    // Custom getter method for allCount
    public Integer getAllCount() {
        return alloutsourceno + alloutsourceyes;
    }
    public Integer getHaveCount() {
        return assignedaccommodationoutsourceyes + assignedaccommodationoutsourceno;
    }
    public Integer getNotCount() {
        return unassignedaccommodationoutsourceyes + unassignedaccommodationoutsourceno;
    }
}
